﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="DireccionesPersonas.aspx.vb" Inherits="DireccionesPersonas" title="Página sin título" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
        <br />
        <table style="width: 678px; height: 493px;">
            <tr>
                <td align="center" colspan="4">
                <asp:Label ID="Label27" runat="server" Font-Size="Large" ForeColor="#9966FF" 
                    Text="Administracion de Direcciones"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 101px">
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
                <td align="right">
                    &nbsp;</td>
                <td align="left" style="width: 184px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width: 101px">
                    <asp:Label ID="Label22" runat="server" Text="Tipo Documento:"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlTipoDocumento" runat="server" BackColor="#CCCCCC" 
                        Enabled="False">
                    </asp:DropDownList>
                </td>
                <td align="right">
                    <asp:Label ID="Label25" runat="server" Text="N° Documento:"></asp:Label>
                </td>
                <td align="left" style="width: 184px">
                    <asp:TextBox ID="txtNroDocumento" runat="server" MaxLength="8" 
                        BackColor="#CCCCCC" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 101px">
                    <asp:Label ID="Label16" runat="server" Text="Calle:"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCalle" runat="server" Width="224px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtCalle" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
                <td align="right">
                    <asp:Label ID="Label17" runat="server" Text="Barrio:"></asp:Label>
                </td>
                <td align="left" style="width: 184px">
                    <asp:TextBox ID="txtBarrio" runat="server" Width="152px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtBarrio" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 101px">
                    <asp:Label ID="Label18" runat="server" Text="Tipo Direccion:"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlTipoDirecciones" runat="server">
    </asp:DropDownList>
                </td>
                <td align="right">
                    <asp:Label ID="Label19" runat="server" Text="Pais:"></asp:Label>
                </td>
                <td align="left" style="width: 184px">
                    &nbsp;<asp:DropDownList ID="ddlPaises" runat="server" AutoPostBack="True">
    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 101px">
                    <asp:Label ID="Label20" runat="server" Text="Provincia:"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlProvincias" runat="server" AutoPostBack="True">
    </asp:DropDownList>
                </td>
                <td align="right">
                    <asp:Label ID="Label21" runat="server" Text="Localidad:"></asp:Label>
                </td>
                <td align="left" style="width: 184px">
                    &nbsp;<asp:DropDownList ID="ddlLocalidades" runat="server">
    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 101px">
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
                <td align="right">
                    &nbsp;</td>
                <td align="left" style="width: 184px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" colspan="4">
                    <asp:Button ID="btnNueva" runat="server" CausesValidation="False" 
                        Text="Nueva" />
                    <asp:Button ID="btnAgregar" runat="server" Text="Aceptar" Enabled="False" />
                    <asp:Button ID="btnVolver" runat="server" Text="Volver" 
                        CausesValidation="False" />
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 101px">
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
                <td align="right">
                    &nbsp;</td>
                <td align="left" style="width: 184px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" colspan="4">
                    <asp:GridView ID="gvDireccionesPersonas" runat="server" 
                        AutoGenerateColumns="False" 
                        DataKeyNames="id_direccion,id_tipo_documento,nro_documento,id_localidad,id_tipo_direccion" 
                        EmptyDataText="No hay direcciones cargadas" CellPadding="4" 
                        ForeColor="#333333" GridLines="None" AllowPaging="True" PageSize="5">
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField DataField="calle" HeaderText="Calle" />
                            <asp:BoundField DataField="barrio" HeaderText="Barrio" />
                            <asp:BoundField DataField="Localidad" HeaderText="Localidad" />
                            <asp:BoundField DataField="Tipo_Direccion" HeaderText="Tipo Direccion" />
                            <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagenes/trash.gif" 
                                ShowDeleteButton="True" />
                            <asp:CommandField ShowSelectButton="True" />
                        </Columns>
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#999999" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 101px">
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
                <td align="right">
                    &nbsp;</td>
                <td align="left" style="width: 184px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width: 101px">
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
                <td align="right">
                    &nbsp;</td>
                <td align="left" style="width: 184px">
                    &nbsp;</td>
            </tr>
            </table>
    </p>
</asp:Content>

